import { useDispatch, useSelector, useStore } from 'react-redux';
import store from '../store';

// Use throughout your app instead of plain `useDispatch` and `useSelector`
export const useAppDispatch = useDispatch.withTypes<typeof store.dispatch>();
export const useAppSelector = useSelector.withTypes<ReturnType<typeof store.getState>>();
export const useAppStore = useStore.withTypes<typeof store>();
